package com.alma.talk.ui;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;

public class TalkWindow extends JFrame implements ActionListener {

	private static final long serialVersionUID = 1L;
	
	public TalkWindow(String name, int width, int height){
		super(name);
		setSize(width, height);
	}
	
	public void setAll(){
		
		setLocationRelativeTo(null);
		JMenu levelMenu = new JMenu("Talk");
		
		JMenuItem help = new JMenuItem();
		help.setText("help");
		help.addActionListener(this);
		levelMenu.add(help);
		
		JMenuItem quit = new JMenuItem();
		quit.setText("quit");
		quit.addActionListener(this);
		levelMenu.add(quit);
		
		JMenuBar menuBar = new JMenuBar();
		menuBar.add(levelMenu);
		setJMenuBar(menuBar);
	}

	public void showAll(){
		setVisible(true);
	}

	@Override
	public void actionPerformed(ActionEvent arg0) {
		// TODO Auto-generated method stub
		
	}

}
